<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<%-- 页面点击量统计 --%>
<%
	Integer count = (Integer)application.getAttribute("hitCount");
	if(count == null || count == 0){
		// 第一次访问
		//out.print("欢迎访问本系统！");
		count = 1;
	}else{
		//out.print("欢迎再次访问本系统！");
		count = count+ 1;
	}
	application.setAttribute("hitCount", count);

%>

<div>页面访问量：<%= count %></div>
</body>
</html>